Optimal. Leaf size=34 \[ -\frac {a^3 B c^3 \cos ^7(e+f x) (c \sin (e+f x)+c)^{n-3}}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.24, antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 45, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.044, Rules used = {2967, 2854} \[ -\frac {a^3 B c^3 \cos ^7(e+f x) (c \sin (e+f x)+c)^{n-3}}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2854
Rule 2967
Rubi steps
\begin {align*} \int (a-a \sin (e+f x))^3 (c+c \sin (e+f x))^n (B (3-n)+B (4+n) \sin (e+f x)) \, dx &=\left (a^3 c^3\right ) \int \cos ^6(e+f x) (c+c \sin (e+f x))^{-3+n} (B (3-n)+B (4+n) \sin (e+f x)) \, dx\\ &=-\frac {a^3 B c^3 \cos ^7(e+f x) (c+c \sin (e+f x))^{-3+n}}{f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.14, size = 67, normalized size = 1.97 \[ -\frac {a^3 B \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^7 \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right ) (c (\sin (e+f x)+1))^n}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.47, size = 77, normalized size = 2.26 \[ \frac {{\left (3 \, B a^{3} \cos \left (f x + e\right )^{3} - 4 \, B a^{3} \cos \left (f x + e\right ) - {\left (B a^{3} \cos \left (f x + e\right )^{3} - 4 \, B a^{3} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} {\left (c \sin \left (f x + e\right ) + c\right )}^{n}}{f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int -{\left (B {\left (n + 4\right )} \sin \left (f x + e\right ) - B {\left (n - 3\right )}\right )} {\left (a \sin \left (f x + e\right ) - a\right )}^{3} {\left (c \sin \left (f x + e\right ) + c\right )}^{n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 8.06, size = 0, normalized size = 0.00 \[ \int \left (a -a \sin \left (f x +e \right )\right )^{3} \left (c +c \sin \left (f x +e \right )\right )^{n} \left (B \left (3-n \right )+B \left (4+n \right ) \sin \left (f x +e \right )\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -\int {\left (B {\left (n + 4\right )} \sin \left (f x + e\right ) - B {\left (n - 3\right )}\right )} {\left (a \sin \left (f x + e\right ) - a\right )}^{3} {\left (c \sin \left (f x + e\right ) + c\right )}^{n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 14.46, size = 61, normalized size = 1.79 \[ -\frac {B\,a^3\,{\left (c\,\left (\sin \left (e+f\,x\right )+1\right )\right )}^n\,\left (14\,\cos \left (e+f\,x\right )-6\,\cos \left (3\,e+3\,f\,x\right )-14\,\sin \left (2\,e+2\,f\,x\right )+\sin \left (4\,e+4\,f\,x\right )\right )}{8\,f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________